import { GetTypeOf } from "../../../../../Decorator/Decorator";
import { IActorRequest, IActorResponse } from "../../../../Model/Share/Module/Actor/IActorMessage";
import { OpcodeTypeComponent } from "../../../../Model/Share/Module/Message/OpcodeTypeComponent";

export class ActorHelper {

    public static CreateResponse(iActorRequest: IActorRequest, error: number): IActorResponse {
        let responseType = OpcodeTypeComponent.Instance.GetResponseType(GetTypeOf(iActorRequest));
        // let response = <IActorResponse>new responseType();
        // response.Error = error;
        // response.RpcId = iActorRequest.RpcId;
        // return response;
        return null;
    }

}